package org.example.controller;


import io.swagger.annotations.ApiOperation;
import org.example.config.ResponseMessage;
import org.example.service.ClickTestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/house")
public class ClickTestController {
    @Resource
    private ClickTestService clickTestService;

    /**
     * 测试clickhouse连接
     * @return
     */
    @GetMapping("/test")
    @ApiOperation(value="测试clickhouse")
    public ResponseMessage getClickTest(){
        return ResponseMessage.ok(clickTestService.getClickTest());
    }

    /**
     * 测试
     * @return
     */
    @GetMapping("/test123")
    @ApiOperation(value="test")
    public ResponseMessage test(){
        return ResponseMessage.ok("123");
    }

}
